home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekikoh Dennoh Club 7
/
Gekikoh Dennoh Club Vol. 7 (Japan).7z
/
Gekikoh Dennoh Club Vol. 7 (Japan) (Track 01).bin
/
ikap
/
graphic1
/
obj_18
/
demo2.bas
< prev
next >
Wrap
BASIC Source File
|
1999-06-15
|
2KB
|
75 lines
/*==== -: "OBJ_18_.SP" カンイ デモ プログラム :- ====
int i,j,pl
int anm_flg,anm_flg2,anm_flg3,anm_flg4
int palet_block=0,plb
char kyc
dim int tbl0(31)={&H0100,&H0101,&H0102,&H0103,&H0104,&H0105,&H0106,&H0107,
&H0108,&H8107,&H8106,&H8105,&H8104,&H8103,&H8102,&H8101,
&H8100,&HC101,&HC102,&HC103,&HC104,&HC105,&HC106,&HC107,
&H4108,&H4107,&H4106,&H4105,&H4104,&H4103,&H4102,&H4101}
/*==== -: screen init. :- ====
screen 0,2,1,1 : window( 0, 0,511,511)
vpage(&B01) : apage(&B00)
sp_init() : sp_disp(1)
spfile_def("OBJ_18_.SP",0)
palfile_def("OBJ_18.PAL",1)
for i=0 to 15
palet(i,sp_color(i,,1+palet_block))
fill(i*8,16, i*8+6,22,i)
next
/*==== -: main demo :- ====
while 1
kyc=asc(inkey$(0))
if kyc = &H1B then break
if kyc = &H20 then {
palet_block=palet_block+1
if palet_block = 14 then palet_block=0
locate 0,0 : print using "P.B.:##";palet_block+1
for i=0 to 15
palet(i,sp_color(i,,1+palet_block))
/* fill(i*8,32,i*8+6,38,i)
next
plb=palet_block shl 8
}
anm_flg=anm_flg+1 and 31
anm_flg2=anm_flg2+1 and 63
anm_flg3=anm_flg3+1 and 15
anm_flg4=anm_flg4+1 and 7
v_disp()
for i=0 to 7
sp_set( i, 24+i*24, 64,plb+tbl0(anm_flg)+i*10,3)
sp_set( 8+i, 24+i*24, 96,plb+tbl0((anm_flg2 shr 1))+i*10,3)
next
v_disp()
sp_set(16, 24,128,&H150+plb+(anm_flg3 shr 1),3)
sp_set(17, 48,128,&H150+plb+(anm_flg shr 2),3)
sp_set(18, 72,128,&H158+plb+(anm_flg3 shr 1),3)
sp_set(19, 96,128,&H158+plb+(anm_flg shr 2),3)
sp_set(20,120,128,&H160+plb+anm_flg4,3)
sp_set(21,144,128,&H160+plb+(anm_flg3 shr 1),3)
sp_set(22,168,128,&H168+plb+anm_flg4,3)
sp_set(23,192,128,&H168+plb+(anm_flg3 shr 1),3)
sp_set(24, 24,160,&H170+plb+(anm_flg4 shr 1),3)
sp_set(25, 48,160,&H170+plb+(anm_flg3 shr 2),3)
sp_set(26, 72,160,&H178+plb+(anm_flg4 shr 1),3)
sp_set(27, 96,160,&H178+plb+(anm_flg3 shr 2),3)
sp_set(28,120,160,&H17C+plb+(anm_flg4 shr 1),3)
sp_set(29,144,160,&H17C+plb+(anm_flg3 shr 2),3)
endwhile